Skip to content

Fix default model bug (#161)#162

Closed
gauravch-code wants to merge 1 commit intoBoise-State-Development:developfrom
gauravch-code:feature/fix-default-model-161
Closed

Fix default model bug (#161)#162
gauravch-code wants to merge 1 commit intoBoise-State-Development:developfrom
gauravch-code:feature/fix-default-model-161

Conversation

@gauravch-code
Copy link
Copy Markdown

This PR addresses the race condition in the frontend model dropdown and ensures the backend properly inherits the user's saved preference.

Changes Made:

Updated currentDefaultModelId in chat-preferences-settings.page.ts to wait for both user settings and available models before emitting a value.

Updated model.service.ts to consult the user's personal default from the settings API.

Updated routes.py in the chat API to query the saved defaultModelId from DynamoDB if model_id is None during agent creation

@gauravch-code gauravch-code force-pushed the feature/fix-default-model-161 branch from 6a79b07 to 9c22768 Compare April 18, 2026 18:15
@gauravch-code gauravch-code closed this by deleting the head repository Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant